﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditFolderPopup.aspx.cs" Inherits="Cms.Web.UI.Admin.TinyMCEIntegration.EditFolderPopup" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <base id="baseTag" runat="server" />
    <link rel="stylesheet" type="text/css" href="Admin/Css/Buttons.css" />
    <link rel="stylesheet" type="text/css" href="Admin/Css/ErrorBox.css" />
    <script type="text/javascript" src="Admin/tiny_mce/tiny_mce_popup.js"></script>
    <script type="text/javascript">
        //<![CDATA[
        var FileBrowserDialogue;

        function initPopup() {
            FileBrowserDialogue = {
                init: function() {
                    // Here goes your code for setting your custom things onLoad.
                },
                submit: function() {
                }
            }
            tinyMCEPopup.onInit.add(FileBrowserDialogue.init, FileBrowserDialogue);
        }

        function showUploadWindow() {
            var win = tinyMCEPopup.getWindowArg("window");
            tinyMCE.activeEditor.windowManager.open({
                file: "Admin/TinyMCEIntegration/UploadPopup.aspx?v=1",
                title: "",
                width: 540,  // Your dimensions may differ - toy around with them!
                height: 500,
                resizable: "no",
                inline: "yes", // This parameter only has an effect if you use the inlinepopups plugin!
                close_previous: "no"
            }, {
                window: win
            });
            parent.document.getElementById("mceModalBlocker").style.zIndex += 1;
            return false;
        }

        function uploadCompleteCallback() {
            __doPostBack('lbUpdate','');
        }
        //]]>
    </script>
    <style type="text/css">
        body { background-color: #f0f0ee; }
        input { border: 1px solid #919b9c; padding: 2px; }
        img { margin: 0px; border: 0px; }
        a, a:hover, a.hover { color: #444455; }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true" EnablePageMethods="true">
        <Services>
            <asp:ServiceReference Path="~/Authentication.asmx" InlineScript="false" /> 
        </Services>
    </asp:ScriptManager>
    <div style="text-align: right;">
        <asp:LinkButton ID="lbSaveFolder" runat="server" OnClick="lbSaveFolder_Click" CssClass="orangeButton"><span><span><img src="Admin/Img/icons/disk.png" alt="" /><span><cms:LocalizedLiteral ID="llSaveFolder" runat="server" /></span></span></span></asp:LinkButton>
        <asp:hyperlink ID="hlCancel" runat="server" CssClass="orangeButton"><span><span><img src="Admin/Img/icons/delete.png" alt="" /><span><cms:LocalizedLiteral ID="llCancel" runat="server" /></span></span></span></asp:hyperlink>
    </div>

    <asp:UpdatePanel ID="upnlAddValidation" runat="server">
        <ContentTemplate>
            <asp:Panel ID="pnlError" runat="server">
                <div id="errorBoxTopOuterContainer" style="margin-top: 6px;">
                    <div id="errorBoxTopInnerContainer">
                        <div id="errorBoxTop">
                            <div id="errorBoxTopBg">&nbsp;</div>
                            <div id="errorBoxTopLeftCorner">&nbsp;</div>
                            <div id="errorBoxTopRightCorner">&nbsp;</div>
                        </div>
                    </div>
                </div>
                <div id="errorBox">
                    <div id="errorBoxLeftBg">&nbsp;</div>
                    <div id="errorBoxRightBg">&nbsp;</div>
                    <div id="errorBoxContent">
                            <asp:ValidationSummary ID="vs" runat="server" EnableClientScript="true" />
                    </div>
                </div>
                <div id="errorBoxBottom">
                    <div id="errorBoxBottomBg">&nbsp;</div>
                    <div id="errorBoxBottomLeftCorner">&nbsp;</div>
                    <div id="errorBoxBottomRightCorner">&nbsp;</div>
                </div>
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>

    <div id="listContainer" style="margin: 0px; margin-top: 6px; border: 1px solid #919b9c; padding: 10px; background-color: #fff;">
        <table class="editForm">
            <tr>
                <td><cms:LocalizedLiteral ID="llName" runat="server" />:</td>
                <td><asp:TextBox ID="txtName" runat="server" /></td>
            </tr>
            <tr>
                <td><cms:LocalizedLiteral ID="llParentFolder" runat="server" />:</td>
                <td><ilib:iDropDownList ID="ddlParentFolders" runat="server" OnSelectedIndexChanged="ddlParentFolders_IndexChanged" AutoPostBack="true" /></td>
            </tr>
            <tr id="trCategories" runat="server">
                <td><cms:LocalizedLiteral ID="llCategories" runat="server" />:</td>
                <td><cms:CategorySelector id="csCategories" runat="server" /></td>
            </tr>
            <tr id="trAllowedAdministratorGroups" runat="server" valign="top">
                <td><cms:LocalizedLiteral ID="llAllowedAdministratorGroups" runat="server" />:</td>
                <td id="tdAllowedAdminGroups"><cms:AdministratorGroupSelector id="gsAllowedAdministratorGroups" runat="server" /></td>
            </tr>
            <tr id="trDeniedAdministratorGroups" runat="server" valign="top">
                <td><cms:LocalizedLiteral ID="llDeniedAdministratorGroups" runat="server" />:</td>
                <td id="tdDeniedAdminGroups"><cms:AdministratorGroupSelector id="gsDeniedAdministratorGroups" runat="server" /></td>
            </tr>
            <tr id="trRequiredUserGroups" runat="server" valign="top">
                <td><cms:LocalizedLiteral ID="llRequiredUserGroups" runat="server" />:</td>
                <td id="tdRequiredUserGroups"><cms:UserGroupSelector id="gsRequiredUserGroups" runat="server" /></td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
